package main;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import jdbcUtilsDemo.JDBCUtils;

public class JDBCUtils_test {
	public static void main(String[] args) {
		Connection conn = JDBCUtils.getConnection();
		String sql = "update score set chinese = 66 where name = 'Rose';";
		try {
			Statement st = conn.createStatement();
			System.out.println(st.executeUpdate(sql));
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			JDBCUtils.close(null,null, conn);
		}
	}
}
